package com.beidasoft.web.vo.system;

import com.beidasoft.web.model.system.Resource;

import java.util.List;

/**
 * 资源管理视图类
 * Created by cty on 2021/8/5.
 */
public class ResourceBean extends Resource {
    private int length;                 // 每页显示记录数
    private int start;                  // 起始查询位置
    private int end;                    // 结束位置
    private String[] ids;               // 主键集合
    private String userId;              // 用户ID
    private List<ResourceBean> subMenu; // 子菜单
    private String roleId;              //角色Id

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public String[] getIds() {
        return ids;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<ResourceBean> getSubMenu() {
        return subMenu;
    }

    public void setSubMenu(List<ResourceBean> subMenu) {
        this.subMenu = subMenu;
    }

    public int getEnd() {
        return start + length;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}
